__autho__ = 'pengfeifu'

import numpy

# param的平方
func1 = lambda param: param ** 2
# param1与param2异或运算
func2 = lambda param1, param2: param2 ^ param1


def func3(outer_param):
    print(outer_param)
    '''
     result = lambda inner_param: inner_param * outer_param
     函数名称：func4,参数inner_param:2
    '''
    result = lambda inner_param: inner_param * outer_param
    print(result)
    return result


if __name__ == '__main__':
    # print(func1(param=10))
    # print(func2(param1=10, param2=2))
    func4 = func3(10)  #func4=<function func3.<locals>.<lambda> at 0x0000028CFFEE7F28>，函数封装成结果
    func5 = func3(outer_param=2)
    print(func4(inner_param=3))
    print(func5(inner_param=2))
